package com.ruoyi.project.syl_Fzq.service.impl;

import com.ruoyi.project.syl_Fzq.domain.Drug_Manufacturer;
import com.ruoyi.project.syl_Fzq.mapper.Drug_ManufacturerMapper;
import com.ruoyi.project.syl_Fzq.service.IDrug_ManufacturerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Drug_ManufacturerServiceImpl implements IDrug_ManufacturerService {

    @Autowired
    private Drug_ManufacturerMapper drug_manufacturerMapper;

    /*
     * 查询所以厂家
     * */
    @Override
    public List<Drug_Manufacturer> selectDrug_manufacturerList(Drug_Manufacturer drug_manufacturer) {
        return drug_manufacturerMapper.selectDrug_ManufacturerList(drug_manufacturer);
    }

    /*
     * 添加厂家
     * */
    @Override
    public int insertDrug_Manufacturer(Drug_Manufacturer drug_manufacturer) {
        return drug_manufacturerMapper.insertDrug_Manufacturer(drug_manufacturer);
    }

    /*
     * 按条件查询厂家
     * */
    @Override
    public Drug_Manufacturer selectById(Long id) {
        return drug_manufacturerMapper.selectById(id);
    }

    /*
     * 修改厂家信息
     * */
    @Override
    public int updateManufacturer(Drug_Manufacturer drug_manufacturer) {
        return drug_manufacturerMapper.updateManufacturer(drug_manufacturer);
    }

    /*
     * 删除厂家
     * */
    @Override
    public int deleteManufacturerByIDs(Long[] ids) {
        return drug_manufacturerMapper.deleteByIDs(ids);
    }

}
